package com.naiterui.ehp.bs.cms.modules.wms.feign;

import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.cms.modules.wms.vo.MedicineVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("inner/cms/medicine/")
@FeignClient(name = "medicine", url = "${ehp.domain.b2c}", configuration = FeignConfiguration.class)
public interface IMedicineFeignClient {

    /**
     * 保存
     */
    @PostMapping
    Long saveOrUpdate(@RequestBody MedicineVO medicineVO) throws BusinessException;

}
